#define _CRT_SECURE_NO_WARNINGS 1
//#include<iostream>
//using namespace std;
#if 0
int main()
{
    int N;
    cin >> N;
    int a[100] = { 0 }; int i = 0, max = 0;
    for (i = 0; i < N; i++)
        scanf("%d", &a[i]);
    int sum = 0;
    for (i = 0; i < N; i++)
    {
        if (a[i] >= max)
            max = a[i];
    }
    for (i = 0; i < N; i++)
    {
        if (a[i] == max)
            sum += a[i];
        continue;
    }
    printf("%d\n", sum - max);
    return 0;
}


int main()
{
    int i = 0, n = 0;
    int count = 0;
    int max = 0;
        cin >> n;
    int a[1000] = { 0 };
    for (i = 0; i < n; i++)
        scanf("%d", &a[i]);
    for (i = 0; i < n; i++)
    {
        if (a[i] >= max)
            max = a[i];
    }
    for (i = 0; i <= max; i++)
    {
        count = 0;
        for (int j = 0; j < n; j++)
        {
            if (a[j] == i)
                count++;
        }
        printf("%d\n", count);
    }
    return 0;
}


#include<stdio.h>
int main() {
    int n, i, j;
    scanf("%d", &n);
    int arr[100001] = { 0 };
    int b[100001] = { 0 };
    for (i = 0; i < n; i++)
        scanf("%d", &arr[i]);
    int a = 0;
    for (i = 0; i < n; i++) {
        a = a > arr[i] ? a : arr[i];
        b[arr[i]] += 1;
    }

    for (j = 0; j <= a; j++) {
        printf("%d\n", b[j]);
    }
}

#include <iostream>
using namespace std;
int main()
{
    int i = 0, n = 0;
    int max = 0;
    cin >> n;
    int a[10000] = { 0 };
    int b[10000] = { 0 };
    for (i = 0; i < n; i++)
        scanf("%d", &a[i]);
    for (i = 0; i < n; i++)
    {
        if (a[i] >= max)
            max = a[i];
    }
    for (int j = 0; j < n; j++)
        b[a[j]]++;
    for (int j = 0; j <=max; j++)
        printf("%d\n", b[j]);
    return 0;
}


#include<stdio.h>
int main()
{
    int i = 0, n = 0;
    int max = 0;
    scanf("%d", n);
    int a[10000] = { 0 };
    int b[10000] = { 0 };
    for (i = 0; i < n; i++)
        scanf("%d", &a[i]);
    for (i = 0; i < n; i++)
    {
        if (a[i] >= max)
            max = a[i];
    }
    for (int j = 0; j < n; j++)
        b[a[j]] += 1;
    for (int j = 0; j <= max; j++)
        printf("%d\n", b[j]);
    return 0;
}
#endif
#include <iostream>
using namespace std;
int main()
{
    int i = 0, n = 0;
    int max = 0;
    cin >> n;
    int a[10000] = { 0 };
    int b[10000] = { 0 };
    for (i = 0; i < n; i++)
        scanf("%d", &a[i]);
    for (i = 0; i < n; i++)
    {
        if (a[i] >= max)
            max = a[i];
        b[a[i]]++;
    }
    for (int j = 0; j <= max; j++)
        printf("%d\n", b[j]);
    return 0;
}